// api/auth.js
import { post, get } from '../utils/request.js'

/**
 * 用户认证相关API
 */

// 发送短信验证码
export const sendSmsVerifycode = (phone) => {
  return post('/v1/sendSmsVerifycode', { phone })
}

// 验证码登录
export const verifyCodeLogin = (data) => {
  return post('/v1/app/user/login', data)
}

// 获取用户信息
export const getUserInfo = () => {
  return get('/v1/app/user/info')
} 